<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>2dland视频发布辅助工具</title>
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/56.js"></script>
<script type="text/javascript">
function parse56(){
	var url = $(':text[name=56url]').val();
	$.post('helper',{type:'56',url:url},suc_56_handler);
}
function suc_56_handler(data){
	var fsp = new FiftySixParser();
	eval('var flvObj=' + fsp.$(data));
	$(':text[name=flvid]').val(flvObj.id);
}
function parse6cn(){
	var url = $(':text[name=6cnurl]').val();
	$.post('helper',{type:'6cn',url:url},suc_6cn_handler);
}
function suc_6cn_handler(data){
	$(':text[name=evid]').val(data);
}
function parseTudou(){
	var url = $(':text[name=tudou_url]').val();
	$.post('helper',{type:'tudou',url:url},suc_tudou_handler);
}
function suc_tudou_handler(data){
	$(':text[name=iid]').val(data);
}
</script>
<style type="text/css">
body{font-size:12px;}
table tr td{padding:2px;}
.txtr{text-align:right;}
</style>
</head><body>
<table cellpadding="0" cellspacing="0" border="0">
<tr><td class="txtr" width="90px">六间房地址</td><td><input type="text" name="6cnurl" size="50"></td></tr>
<tr><td class="txtr"><input type="button" value="获取evid" onclick="parse6cn();"></td><td><input type="text" name="evid" size="24"></td></tr>
</table>
<hr>
<table cellpadding="0" cellspacing="0" border="0">
<tr><td class="txtr" width="90px">56网视频地址</td><td><input type="text" name="56url" size="50"></td></tr>
<tr><td class="txtr"><input type="button" value="获取flvid" onclick="parse56();"></td><td><input type="text" name="flvid" size="10"></td></tr>
</table>
<hr>
<table cellpadding="0" cellspacing="0" border="0">
<tr><td class="txtr" width="90px">土豆视频地址</td><td><input type="text" name="tudou_url" size="50"></td></tr>
<tr><td class="txtr"><input type="button" value="获取iid" onclick="parseTudou();"></td><td><input type="text" name="iid" size="10"></td></tr>
</table>
</body></html>